using rpc_service.config;

namespace rpc_service.core.registry;

public abstract class AbstractRegistryFactory : RegistryFactory
{
    public abstract Registry CreateRegistry(Config config);

    public abstract Type GetRegistryType(Config config);
    
    public abstract bool Supports(string registryType);
    
    protected bool IsNullOrEmpty(string str)
    {
        return string.IsNullOrEmpty(str) || string.IsNullOrWhiteSpace(str);
    }
}